﻿@model IEnumerable<MVC_Tutorial.Models.BlogPost>
@{
    ViewBag.Title = "My Blog";
}
@section featured {
    <section class="featured">
        <div class="content-wrapper">
            <hgroup class="title">
                <h1>@ViewBag.Title.</h1>
                <h2>@ViewBag.Message</h2>
            </hgroup>
        </div>
    </section>
}
@if(Roles.IsUserInRole("Author")){
<p>
      <h3>@Html.ActionLink("Create New", "Create", "Blog")</h3>
</p>
}
<h3>Posts:</h3>

@foreach (var item in Model)
{
    @Html.Partial("~\\Views\\Shared\\_Blog.cshtml", item)
}

